import autoImport from 'unplugin-auto-import/vite'

export default function createAutoImport() {
    return autoImport({
        imports: [
            'vue',
            'vue-router',
            'pinia',
            {
                '@vueuse/core': [
                  // named imports
                  'useMouse', // import { useMouse } from '@vueuse/core',
                  // alias
                  ['useFetch', 'useMyFetch'] // import { useFetch as useMyFetch } from '@vueuse/core',
                ],
                axios: [
                  // default imports
                  ['default', 'axios'] // import { default as axios } from 'axios',
                ]
              }
        ],
        dts: false
    })
}
